package com.tbit.uqbike.webmanager.dao.ter;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.TerAttrEx;
import org.apache.ibatis.annotations.Update;

/**
 * @Author:BUGTian
 * @DATE: 2022/10/25
 */
@DS(DataSource.TER)
public interface TerAttrExDao extends BaseMapper<TerAttrEx> {

    /**
     * 更新终端静止起止时间
     *
     * @param terAttrEx
     */
    @Update("update ter_attr_ex set attr_dt = #{attr_dt} where attr_name = #{attr_name} and mno = #{mno}")
    void updateAttrDt(TerAttrEx terAttrEx);
}
